﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace Onshi.POS.Formularios.Recursos
{
    public class GrillaBase : DataGridView
    {
        #region Constructores

        public GrillaBase()
        {
            HandleCreated += new EventHandler(GrillaBase_HandleCreated);
        }

        #endregion

        #region Eventos

        private void GrillaBase_HandleCreated(Object sender, EventArgs e)
        {
            Font = Properties.Settings.Default.Fuente;
            AlternatingRowsDefaultCellStyle.BackColor = Color.Gainsboro;
            BorderStyle = BorderStyle.Fixed3D;
            AllowUserToAddRows = false;
            AllowUserToDeleteRows = false;
            AllowUserToResizeRows = false;
            AutoGenerateColumns = false;
            RowHeadersVisible = false;
            StandardTab = true;
            MultiSelect = false;
            SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            CellBorderStyle = DataGridViewCellBorderStyle.SingleVertical;
        }

        #endregion
    }
}
